package edu.sctu.practice.class02.shuqiqi.test02;

/**
 * Created by admin on 2015/10/12.
 */
public class VehicleMain {

    public static void main(String[] args) {

        Vehicle vehicle = new Vehicle();
        vehicle.setSpeed(10);
        vehicle.size = 5;
        vehicle.move();
        vehicle.speedUp();
        vehicle.speedDown();
        System.out.println("体积" + vehicle.size);
        System.out.println("速度" + vehicle.speed);
        System.out.println("减速后的速度" + vehicle.speedDown());
        System.out.println("加速后的速度" + vehicle.speedUp());
    }
}
